class AddRoleToUser < ActiveRecord::Migration
  def self.up
    add_column :users, :role, :string, :default => 'student'
#    admin_user = User.new
#    admin_user.login = 'admin'
#    admin_user.password = 'secret'
#    admin_user.password_confirmation = 'secret'
#    admin_user.role = 'administrator'
#    admin_user.email = 'admin@uwaterloo.ca'
#    admin_user.save(false)

  end

  def self.down
    remove_column :users, :role
  end
end
